import request from '../../utils/request';
let baseRequest_url = "http://127.0.0.1:4890/portal";
//  --------------------------------------------------------------------------------------------------------------- //
// 新闻资讯分类查询
export const findNewsTagList = query => {
    return request({
        url: baseRequest_url+'/admin/news/tag/findNewsTagList',
        method: 'get',
		params: query,
    });
};
// 新闻资讯标签列表分页查询
export const findNewsTagListPage = query => {
    return request({
        url: baseRequest_url+'/admin/news/tag/findNewsTagListPage',
        method: 'get',
		params: query,
    });
};
// 新闻资讯标签详情查询
export const findNewsTagInfoById = query => {
    return request({
        url: baseRequest_url+'/admin/news/tag/findNewsTagInfoById/'+query,
        method: 'get',
		params: query,
    });
};
// 新增编辑新闻资讯标签
export const addNewsTag = data => {
    return request({
        url: baseRequest_url+'/admin/news/tag/saveNewsTag',
        method: 'post',
		data: data,
    });
};
// 新增编辑新闻资讯标签
export const saveNewsTag = data => {
    return request({
        url: baseRequest_url+'/admin/news/tag/saveNewsTag',
        method: 'put',
		data: data,
    });
};
// 删除新闻资讯标签
export const deleteNewsTag = data => {
    return request({
        url: baseRequest_url+'/admin/news/tag/deleteNewsTag/'+data,
        method: 'delete',
    });
};
// 批量删除新闻资讯标签
export const batchDeleteNewsTag = data => {
    return request({
        url: baseRequest_url+'/admin/news/tag/deleteNewsTag',
        method: 'delete',
		data: data,
    });
};
